package com.ruoyi.system.domain.dto;

import com.ruoyi.system.domain.Productlist;
import com.ruoyi.system.domain.Storelist;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

public class StorelistDto extends Storelist {

    List<ProductDto> producList;

    public List<ProductDto> getProducList() {
        return producList;
    }

    public void setProducList(List<ProductDto> producList) {
        this.producList = producList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("storeId", getStoreId())
                .append("scenicName", getScenicName())
                .append("storeName", getStoreName())
                .append("storeAdress", getStoreAdress())
                .append("storePhone", getStorePhone())
                .append("managerName", getManagerName())
                .append("establishmentsTime", getEstablishmentsTime())
                .append("createTime", getCreateTime())
                // 新增的 producList 属性
                .append("producList", producList)
                .toString();
    }
}
